//
//  CheckstanHeaderView.m
//  GLGW_Shoping
//
//  Created by yang on 2018/11/15.
//  Copyright © 2018年 yang. All rights reserved.
//

#import "CheckstanHeaderView.h"

@interface CheckstanHeaderView (){
    GLGWLabel * moneyLabel;
}

@end

@implementation CheckstanHeaderView

-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame:frame]) {
        GLGWView * topView = [[GLGWView alloc] initWithFrame:CGRectMake(0, 0, KScreenWidth, kHeightProportion_In_iPhoneTriploid(10)) inSuperView:self];
        topView.backgroundColor = [UIColor colorWithHexString:@"#F2F2F2"];
        //
        GLGWLabel * piceLabel  = [[GLGWLabel alloc] initWithFrame:CGRectMake(0, kY_With_View(topView, 20), KScreenWidth, kHeightProportion_In_iPhoneTriploid(20)) theFont:SYSTEMFONT(14) theColor:[UIColor colorWithHexString:@"#999999"] inSuperView:self];
        piceLabel.text = @"需冻结求购定金";
        piceLabel.textAlignment = NSTextAlignmentCenter;
        //
        moneyLabel = [[GLGWLabel alloc] initWithFrame:CGRectMake(0, kY_With_View(piceLabel, 15), KScreenWidth, kHeightProportion_In_iPhoneTriploid(25)) theFont:SYSTEMFONT(18) theColor:[UIColor colorWithHexString:@"#EC5353"] inSuperView:self];
        moneyLabel.text = @"100.00元";
        moneyLabel.textAlignment = NSTextAlignmentCenter;
        //
        GLGWView * lineView = [[GLGWView alloc] initWithFrame:CGRectMake(0, kY_With_View(moneyLabel, 20), KScreenWidth, 1) inSuperView:self];
        lineView.backgroundColor = [UIColor colorWithHexString:@"#EAEAEA"];
        //
        GLGWLabel * bottTitLabel = [[GLGWLabel alloc] initWithFrame:CGRectMake(kWidthProportion_In_iPhoneTriploid(15), kY_With_View(lineView, 20), KScreenWidth - kWidthProportion_In_iPhoneTriploid(30), kHeightProportion_In_iPhoneTriploid(22)) theFont:BOLDSYSTEMFONT(16) theColor:kColor_Rule_Black inSuperView:self];
        bottTitLabel.text = @"选择支付方式";
        
    }
    return self;
}

@end
